package com.wt.struggle.goodbye.main.activity

import android.os.Bundle
import android.os.Message
import com.wt.struggle.goodbye.R
import com.wt.struggle.goodbye.base.ProActivity
import com.wt.struggle.goodbye.info.NetInfo
import com.wt.struggle.goodbye.main.fragment.SearchListFragment

/**
 * 搜索到的数据列表
 */
class SearchListActivity : ProActivity() {

    override fun handler(what: Int, arg1: Int, netInfo: NetInfo) {
        when (what) {

        }
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.search_list_ac_layout)

        val result=intent.getStringExtra("data")

        val manager = supportFragmentManager
        val t = manager.beginTransaction()
        val fragment = SearchListFragment()
        fragment.resultStr = result
        t.add(R.id.fragmentAc, fragment)
        t.commit()

    }
}